﻿
using System.ComponentModel;
namespace QHW.Comp.AppEnum
{

    public class MemberEnum
    {
        #region 会员性质 （试用）
        /// <summary>
        /// 获取会员性质 
        /// </summary>
        /// <param name="objNature">会员性质</param>
        /// <returns></returns>
        public static string GetMemberNature(object objNature)
        {
            #region
            switch (objNature.ToString())
            {
                case "0":
                    return "试用";
                case "1":
                    return "免费";
                case "2":
                    return "收费";
                case "3":
                    return "代理商";
                default:
                    return "无";
            }
            #endregion
        }
        /// <summary>
        /// 获取会员性质 加样式
        /// </summary>
        /// <param name="objNature">会员性质</param>
        /// <returns></returns>
        public static string GetMemberNatureAndCss(object objNature)
        {
            #region
            switch (objNature.ToString())
            {
                case "0":
                    return "<span style='color:red;'>试用</span>";
                case "1":
                    return "<span style='color:orange;'>免费</span>";
                case "2":
                    return "<span style='color:green'>收费</span>";
                case "3":
                    return "<span style='color:blue;'>代理商</span>";
                default:
                    return "无";
            }
            #endregion
        }
        #endregion
        /// <summary>
        /// 获取开放状态
        /// </summary>
        /// <param name="objLevel">开放状态</param>
        /// <returns></returns>
        public static string GetMemberLevel(object objLevel)
        {
            #region
            switch (objLevel.ToString())
            {
                case "0":
                    return "<span style='color:green'>未开放</span>";
                case "1":
                    return "<span style='color:orange;'>待开放</span>";
                case "2":
                    return "已开放";
                case "3":
                    return "<span style='color:red;'>关闭</span>";
                default:
                    return "无";
            }
            #endregion
        }
    }

    #region 招聘相关

    #region 招聘职位性别  MemberJobSex
    /// <summary>
    /// 招聘职位性别
    /// </summary>
    public enum MemberJobSex
    {
        [Description("男")]
        Man = 0,
        [Description("女")]
        Woman = 1,
        [Description("不限")]
        All = 2
    }
    #endregion

    #region 招聘职位学历要求  MemberJobEducation
    /// <summary>
    /// 招聘职位性别
    /// </summary>
    public enum MemberJobEducation
    {
        [Description("不限")]
        All = 0,
        [Description("初中")]
        ChuZhong = 1,
        [Description("高中")]
        GaoZhong = 2,
        [Description("中技")]
        ZhongJi = 3,
        [Description("中专")]
        ZhongZhuan = 4,
        [Description("大专")]
        DaZhuan = 5,
        [Description("本科")]
        BenKe = 6,
        [Description("硕士")]
        ShuoShi = 7,
        [Description("博士")]
        BoShi = 8,
        [Description("博士后")]
        BoShiHou = 9
    }
    #endregion

    #region 招聘职位工作经验  MemberJobExerience
    /// <summary>
    /// 招聘职位工作经验
    /// </summary>
    public enum MemberJobExerience
    {
        [Description("不限")]
        All = 0,
        [Description("应届毕业生")]
        ChuZhong = 1,
        [Description("一年以内")]
        GaoZhong = 2,
        [Description("一年--两年")]
        ZhongJi = 3,
        [Description("三年--五年")]
        ZhongZhuan = 4,
        [Description("六年--八年")]
        DaZhuan = 5,
        [Description("九年--十年")]
        BenKe = 6,
        [Description("十年以上")]
        ShuoShi = 7
    }
    #endregion

    #region 招聘职位月薪待遇  MemberJobMoney
    /// <summary>
    /// 招聘职位月薪待遇
    /// </summary>
    public enum MemberJobMoney
    {
        [Description("面议")]
        Face = 0,
        [Description("500-1000")]
        _500_1000 = 1,
        [Description("1000-1500")]
        _1000_1500 = 2,
        [Description("1500-2000")]
        _1500_2000 = 3,
        [Description("2000-2500")]
        _2000_2500 = 4,
        [Description("2500-3000")]
        _2500_3000 = 5,
        [Description("3000-3500")]
        _3000_3500 = 6,
        [Description("3500-5000")]
        _3500_5000 = 7,
        [Description("5000-10000")]
        _5000_10000 = 8,
        [Description("1万以上")]
        Wan = 9
    }
    #endregion

    #region 招聘职位性质  MemberJobNature
    /// <summary>
    /// 招聘职位性质
    /// </summary>
    public enum MemberJobNature
    {
        [Description("全职")]
        FullTime = 0,
        [Description("兼职")]
        PartTime = 1,
        [Description("实习")]
        Practice = 2
    }
    #endregion

    #endregion

    #region 会员版本    MemberVersion
    /// <summary>
    /// 会员版本
    /// </summary>
    public enum MemberVersion
    {
        /// <summary>
        /// 普通会员(基础版)
        /// </summary>
        [Description("普通会员")]
        Common = 0,
        /// <summary>
        /// 黄金会员(原标准版)
        /// </summary>
        [Description("黄金会员")]
        Advanced = 1,
        /// <summary>
        /// 白金会员(原专业版)
        /// </summary>
        [Description("白金会员")]
        Gold = 2,
        /// <summary>
        /// 钻石会员(定制版本)
        /// </summary>
        [Description("钻石会员")]
        Diamond = 3
    }
    #endregion


    public enum MemberNature
    {
        /// <summary>
        /// 试用
        /// </summary>
        [Description("试用")]
        Try = 0,
        /// <summary>
        /// 免费
        /// </summary>
        [Description("免费")]
        Free = 1,
        /// <summary>
        /// 收费
        /// </summary>
        [Description("收费")]
        Charge = 2,
        /// <summary>
        /// 代理商
        /// </summary>
        [Description("代理商")]
        Agents = 3
    }

    #region 会员状态    MemberLevel
    /// <summary>
    /// 会员状态
    /// </summary>
    public enum MemberLevel
    {
        /// <summary>
        ///未开放
        /// </summary>
        [Description("未开放")]
        UnOpen = 0,
        /// <summary>
        /// 待开放
        /// </summary>
        [Description("待开放")]
        WaitingOpen = 1,
        /// <summary>
        /// 已开放
        /// </summary>
        [Description("已开放")]
        Opened = 2,
        /// <summary>
        /// 关闭
        /// </summary>
        [Description("关闭")]
        Closed = 3,

        ///// <summary>
        ///// 试用
        ///// </summary>
        //[Description("试用")]
        //Trying = 4
    }
    #endregion

    /// <summary>
    /// 用户页面
    /// </summary>
    public enum MemberPage
    {
        /// <summary>
        /// 首页
        /// </summary>
        [Description("首页")]
        Index = 0,
        /// <summary>
        /// 公司简介
        /// </summary>
        [Description("公司简介")]
        About = 1,
        /// <summary>
        /// 产品介绍
        /// </summary>
        [Description("产品展示")]
        Product = 2,
        /// <summary>
        /// 公司新闻
        /// </summary>
        [Description("新闻中心")]
        News = 3,
        /// <summary>
        /// 资质荣誉4
        /// </summary>
        [Description("资质荣誉")]
        Hooner = 4,
        /// <summary>
        /// 招商加盟5
        /// </summary>
        [Description("招商加盟")]
        Business = 5,
        /// <summary>
        /// 人才招聘6
        /// </summary>
        [Description("人才招聘")]
        Job = 6,
        /// <summary>
        /// 在线反馈
        /// </summary>
        [Description("在线反馈")]
        Feedback = 7,
        /// <summary>
        /// 联系我们
        /// </summary>
        [Description("联系我们")]
        Contact = 8,
    }

    /// <summary>
    /// 产品推荐位置
    /// </summary>
    public enum ProtuctRecommendPosition
    {
        [Description("企汇网首页")]
        Index = 0,
        [Description("产品展台首页")]
        ProductIndex = 1,
    }

    [Description("登陆反馈信息")]
    public enum LoginCase
    {
        /// <summary>
        /// 用户名不存在
        /// </summary>
        [Description("用户名不存在")]
        UserNameError = 0,
        /// <summary>
        /// 密码错误
        /// </summary>
        [Description("密码错误")]
        PassWordError = 1,
        /// <summary>
        /// 登陆成功
        /// </summary>
        [Description("登陆成功")]
        Sucess = 2,
        /// <summary>
        /// 用户账户正在审核
        /// </summary>
        [Description("正在审核")]
        Auditting = 3,
        /// <summary>
        /// 用户被禁用
        /// </summary>
        [Description("用户被禁用")]
        Stopped = 4,
        /// <summary>
        /// 试用期结束
        /// </summary>
        [Description("试用期结束")]
        TrialStopped = 5,
        /// <summary>
        /// 年费到期
        /// </summary>
        [Description("年费已到期")]
        RenewalStopped = 6,
        /// <summary>
        /// 用户已删除
        /// </summary>
        [Description("此用户已删除")]
        IsDeleted = 7,
        /// <summary>
        /// 网站尚未生成
        /// </summary>
        [Description("网站尚未生成")]
        NotCreateSite =8
    }
}
